package com.gzs.learn.payment.inf;

import com.gzs.learn.inf.BaseResponseDto;
import com.gzs.learn.payment.inf.dto.web.PaymentChannel;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 后端管理系统查询接口
 *
 * @auther guanzhisong
 * @date 2021/7/12
 */
@RequestMapping("payment/web")
public interface IPaymentWebClientSign {
    /**
     * 新增支付渠道配置
     *
     * @param paymentChannel
     * @return
     */
    @PostMapping("add-channel")
    BaseResponseDto<Boolean> addPaymentChannel(@RequestBody  PaymentChannel paymentChannel);

    /**
     * 修改支付渠道配置
     *
     * @param paymentChannel
     * @return
     */
    @PostMapping("update-channel")
    BaseResponseDto<Boolean> updatePaymentChannel(@RequestBody  PaymentChannel paymentChannel);
}
